
package com.example.auth.modular.login.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;

/**
 * 账号密码登录参数

 **/
@Getter
@Setter
public class AuthAccountPasswordLoginParam {

    /** 账号 */
    @Schema(description = "账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "superAdmin")
    @NotBlank(message = "账号不能为空")
    private String account;

    /** 密码 */
    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码（需传递前端通过SM4-CBC加密后的密文，与后端解密算法匹配）",
            example = "25fde38d0a43b3d51cd9f7b882aa49533e028097ebc9b4c518e0bcb9fc00c257f454d68bd2f2e43855b94c1c0882ad2633aeae339baa17a583dfcca75749be025b38e5e63f3ac9684e7b5739954a7e51d0d3dbdd7d5b0e26fd592129b5dfbe0336a86d5dd75d57daabccb9624057000efa4d7dac449fd830") // 示例密文，仅作测试使用
    private String password;

    /** 设备 */
    @Schema(description = "设备")
    private String device;

    /** 验证码 */
    @Schema(description = "验证码")
    private String validCode;

    /** 验证码请求号 */
    @Schema(description = "验证码请求号")
    private String validCodeReqNo;
}
